<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello MUI</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="css/mui.min.css">
		<style type="text/css">
			
			#list {
				/*避免导航边框和列表背景边框重叠，看起来像两条边框似得；*/
				margin-top: -1px;
			}
			#kemu {
				width: 100%;
				height: 100px;
				margin-left: ;
			}
			p {
				margin-left: 20px;
				margin-right: 10px;
			}
			
			
		</style>
	</head>

	<body onload="selectStudyOnlineName()">
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">知识点</h1>
		</header>
		
		<div class="mui-content" style="background-color: white;">
         <!--
         	知识点列表
         -->
			<ul id="list" class="mui-table-view mui-table-view-chevron" style="margin-bottom: 50px;">
				

			</ul>
			
		</div>
		<nav class="mui-bar mui-bar-tab">
			<a id="defaultTab" class="mui-tab-item mui-active" href="tab-webview-subpage-about.html">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item" href="tab-webview-subpage-chat.html">
				<span class="mui-icon mui-icon-email"><span class="mui-badge">9</span></span>
				<span class="mui-tab-label">消息</span>
			</a>
			<a class="mui-tab-item" href="#aboutus">
				<span class="mui-icon mui-icon-help"></span>
				<span class="mui-tab-label">关于我们</span>
			</a>
			<a class="mui-tab-item" href="#myown">
				<span class="mui-icon mui-icon-contact"></span>
				<span class="mui-tab-label">我的</span>
			</a>
		</nav>
		<script src="js/mui.min.js"></script>
        <script type="text/javascript" charset="utf-8"> 
			 //mui初始化
			mui.init();
			
			function selectStudyOnlineName(){
				mui.ajax({
			    	url:'http://127.0.0.1:8080/selectAllInformaton',
					
					type:'get',
			    	success:function(data){
                         var testpaper_html = "";
			    		for(var i=0; i<data.length;i++){
			    			testpaper_html += '<li id="knowledgepoint" class="mui-table-view-cell mui-collapse" style="line-height: 30px;background-color:	">';
			    			testpaper_html += '<a class="mui-navigate-right" href="#">'+data[i].soName+'</a>';
			    			testpaper_html += '<div class="mui-table-view mui-table-view-chevron" style="background-color:#FFFACD;"><p>'+data[i].soTxt+'</p></div></li>'
			    		};
			    		document.getElementById("list").innerHTML = testpaper_html;
			    	}
			    })
			}
		</script>
		
	</body>

</html>